package com.easygem.controller.front;

import com.easygem.common.model.front.RechargeRecord;
import com.easygem.common.response.ResponseBean;
import com.easygem.front.service.RechargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author 廖思炜
 * @version 1.0
 * @className RechargeRecordController
 * @Description TODO
 * @date 2025/3/25 9:14
 */
@RestController
@RequestMapping("/comcentre/recharge")
public class RechargeRecordController {
    @Autowired
    private RechargeRecordService rechargeRecordService;

    @PostMapping("/getRechargeRecords")
    public ResponseBean getRechargeRecords(@RequestBody RechargeRecord rechargeRecord) {
        return ResponseBean.success(rechargeRecordService.selectByTime(rechargeRecord));
    }
}
